<!DOCTYPE html>
<!--[if IE 6 ]>
<html class="ie6 lte_ie6 lte_ie7 lte_ie8 lte_ie9"> <![endif]-->
<!--[if lte IE 6 ]>
<html class="lte_ie6 lte_ie7 lte_ie8 lte_ie9"> <![endif]-->
<!--[if lte IE 7 ]>
<html class="lte_ie7 lte_ie8 lte_ie9"> <![endif]-->
<!--[if lte IE 8 ]>
<html class="lte_ie8 lte_ie9"> <![endif]-->
<!--[if lte IE 9 ]>
<html class="lte_ie9"> <![endif]-->
<!--[if (gte IE 10)|!(IE)]><!-->
<html><!--<![endif]-->
    <head>
        <title>管科院</title>
        <meta http-equiv="Content-Type" content="text/html; charset=gbk"/>
        <meta name="renderer" content="ie-stand">
        <meta http-equiv="X-UA-Compatible" content="IE=10,chrome=1"/>
        <meta name="viewport"
              content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
        <script type="text/javascript">
            var MYOA_JS_SERVER = "";
            var MYOA_STATIC_SERVER = "";
        </script>
    </head>

    <script type="text/javascript">
        var cur_login_user_id = "admin";
        var cur_login_user_priv = "1";
        var gz_postfix = "";
        var static_server = "";

        self.moveTo(0, 0);
        self.resizeTo(screen.availWidth, screen.availHeight);
        self.focus();
    </script>
    <link rel="stylesheet" type="text/css" href="static/js/bootstrap/css/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="static/js/bootstrap/tag/bootstrap.tag.css">
    <link rel="stylesheet" type="text/css" href="static/js/intro/show_guide.css"/>
    <link rel="stylesheet" href="static/common/iconfont/iconfont.css">
    <link rel="stylesheet" href="static/js/animate/animate.min.css">
    <link rel="stylesheet" type="text/css" href="static/theme/15/index.css?v=150703"/>
    <script type="text/javascript" src="static/pack/common/puck.jquery_bootstrap.js"></script>
    <script type="text/javascript" src="static/pack/t-os/puck.t-os.other.js"></script>
    <script type="text/javascript" src="static/js/jquery-1.5.1/jquery.cookie.js"></script>
    <script type="text/javascript" src="static/js/webuploader/webuploader.js"></script>
    <script type="text/javascript" src="static/js/js_lang.js"></script>

    <?php
    //引用授权菜单文件
    require 'menu_function.php';

    ?>

<!--<script type="text/javascript" src="static/js/sys_function_7a682d434e.js"></script>-->
    <script type="text/javascript" src="static/js/plugin.js"></script>
    <script type="text/javascript" src="static/js/seajs/2.1.1/sea.js"></script>
    <script type="text/javascript" src="static/js/base64/base64.min.js"></script>
    <script src="static/js/module.js"></script>

    <?php

    //得到一级菜单
    $menu = \mdm\admin\models\Menu::find()->where('parent is NULL')->all();
    foreach ($menu as $m) {
        $id = $m->id;
        $idArr[] = "'" . $id . "'";
        //得到二级菜单
        $items = \mdm\admin\models\Menu::find()->where(['parent' => $id])->all();
        if ($items != null) {
            $secondarray = '';
            $secondid = [];
            foreach ($items as $item) {
                $sid = $item->id;
                $secondid[] = "'" . $sid . "'";
            }
            $sids = implode($secondid, ",");
            //拼接特定格式字符串:
            $secondarray = '[' . $sids . ']';
        }
        //二级菜单数组
        $second_array2["m" . $id] = $secondarray;

    }


    //一级菜单格式：['46','47','48','49','50','51','52','53'];
    $ids = implode($idArr, ",");
    $firstarray = '[' . $ids . ']';


    ?>


    <script type="text/javascript">
        var bEmailPriv = true;
        var bSmsPriv = true;
        var bTabStyle = true;
        var OA_TIME = new Date(2015, 11, 19, 19, 29, 21);
        var bInitWeather = true;
        var weatherCity = ConvertWeatherCity("北京_北京_北京");
        var menuExpand = "";
        var shortcutArray = Array(1, 4, 147, 8, 130, 5, 131, 9, 16, 15, 76, 62);
        var loginUser = {uid: 1, user_id: "", user_name: ""};
        var logoutText = "轻轻的您走了，正如您轻轻的来……";
        var monInterval = {online: 120, sms: 30};
        var ispirit = "";
        var statusTextScroll = 60;
        var newSmsSoundHtml = "<object id='sms_sound' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='static/js/swflash.cab' width='0' height='0'><param name='movie' value='static/wav/1.swf'><param name=quality value=high><embed id='sms_sound' src='static/wav/1.swf' width='0' height='0' quality='autohigh' wmode='opaque' type='application/x-shockwave-flash' plugspace='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'></embed></object>";
        var show_ip = 1;
        var show_button = "0";
        var unit_name = '&nbsp;';
        var jsonURL0 = '%2Finc%2Fonline.php%3FPARA_URL2%3D%2Fgeneral%2Fipanel%2Fuser%2Fuser_info.php%26PARA_TARGET%3D_blank%26PARA_ID%3DWINDOW%26PARA_VALUE%3D1%26SHOW_IP%3D1%26PWD%3D%26OP_SMS%3D1';
        var jsonURL1 = '%2Finc%2Fuser_list%2Ftree.php%3FMANAGE_FLAG%3D0%26DEPT_ID%3D0%26PARA_URL1%3D%26PARA_URL2%3D%2Fgeneral%2Fipanel%2Fuser%2Fuser_info.php%26e%3D%26PARA_TARGET%3D_blank%26PRIV_NO%3D%26PARA_ID%3DWINDOW%26PARA_VALUE%3D1%26MODULE_ID%3D2%26SHOW_IP%3D1%26PWD%3D%26DEPT_PRIV%3D1%26ROLE_PRIV%3D2%26PRIV_NO_FLAG%3D0%26OP_SMS%3D1%26rand%3D959591579';
        var user_total_count = "20";
        //var portalLoadArray = [{id:"5", src:"5", url:"http://localhost/gky/web?r=site/index", title:"我的桌面", closable:true}];

        var portalLoadArray = [{id: "5", title: "我的桌面", url: "?r=site/index", closable: true}];
        var themeArray = [];
        themeArray["10"] = {src: "static/images/themeswitch/theme_thumb_10.jpg", title: "宁静的思考"};
        themeArray["13"] = {src: "static/images/themeswitch/theme_thumb_13.jpg", title: "现代或未来"};
        themeArray["15"] = {src: "static/images/themeswitch/theme_thumb_15.jpg", title: "T-OS"};

        //-- 一级菜单 --
        //特定格式：['46','47','48','49','50','51','52','53'];
        var first_array = [];
        var first = <?= $firstarray ?>;
        first_array = first_array.concat(['shortcut'], first);
        
        //-- 二级菜单 --
        //特定格式：second_array['m46'] = ['54'];
        var second_array = [];
        <?php
        foreach ($second_array2 as $key => $value) {
            echo "second_array['$key'] =$value;\n";
        }
        ?>

        //-- 一级菜单对应的字体图标 --
        var module2iconfont = {
            "01": "&#xe653;",
            "02": "",
            "10": "&#xe65a;",
            "13": "&#xe648;",
            "20": "&#xe655;",
            "30": "&#xe612;",
            "40": "&#xe611;",
            "45": "&#xe645;",
            "50": "&#xe67a;",
            "65": "&#xe64c;",
            "70": "&#xe64a;",
            "85": "&#xe648;",
            "90": "&#xe651;",
            "a0": "&#xe649;",
            "b0": "&#xe647;",
            "d0": "&#xe652;",
            "dd": "&#xe646;",
            "e0": "&#xe613;",
            "y0": "&#xe64b;",
            "z0": "&#xe650;",
            "shortcut": "&#xe65b;",
            "default": "&#xe67a;"
        };

        //-- 系统消息提示条字体图标 --
        var msgTipIconfont = {
            "0": "&#xe65d;",
            "1": "&#xe61e;",
            "2": "&#xe619;",
            "3": "&#xe64f;",
            "4": "&#xe61a;",
            "5": "&#xe616;",
            "6": "&#xe615;",
            "7": "&#xe65a;",
            "8": "&#xe638;",
            "9": "&#xe618;",
            "10": "&#xe63a;",
            "11": "&#xe64d;",
            "12": "&#xe61c;",
            "13": "&#xe61d;",
            "14": "&#xe65e;",
            "15": "&#xe614;",
            "16": "&#xe638;",
            "17": "&#xe65b;",
            "24": "&#xe617;",
            "message": "&#xe65c;",
            "default": ""
        };

        //-- 个人收藏 --
        func_array["extFav"] = [];

        //快捷菜单
        //    func_array["mshortcut"]=["快捷菜单","shortcut"];
        //    func_array["fshortcut"]=["快捷菜单","person_info/index.php?MAIN_URL=shortcut","",""];

        //-- 天气 --
        var weather_json = [{
                "date": "11\u670819\u65e5",
                "img1": "7",
                "img2": "14",
                "weather": "\u5c0f\u96e8\u8f6c\u5c0f\u96ea",
                "temperature": "5\u2103~1\u2103",
                "wind": "\u5fae\u98ce"
            }, {
                "date": "11\u670820\u65e5",
                "img1": "6",
                "img2": "15",
                "weather": "\u96e8\u5939\u96ea\u8f6c\u4e2d\u96ea",
                "temperature": "3\u2103~0\u2103",
                "wind": "\u5fae\u98ce"
            }, {
                "date": "11\u670821\u65e5",
                "img1": "27",
                "img2": "15",
                "weather": "\u4e2d\u5230\u5927\u96ea\u8f6c\u4e2d\u96ea",
                "temperature": "1\u2103~-1\u2103",
                "wind": "\u5fae\u98ce"
            }, {
                "date": "11\u670822\u65e5",
                "img1": "16",
                "img2": "14",
                "weather": "\u5927\u96ea\u8f6c\u5c0f\u96ea",
                "temperature": "0\u2103~-2\u2103",
                "wind": "\u5fae\u98ce"
            }];

        //-- 当前系统主题
        var ostheme = 15;
        var timer_sms_mon = null;
        var timer_online_tree_ref = null;
        //微讯箱自动关闭时间，秒
        var closeNocPanel = null;
        var nocbox_close_timeout = 3;
        var timeLastLoadOnline = 0;
        var nextTabId = 0;
        var maxSendSmsId = 0;
        var newSmsArray = [];
        var selectedRecvSmsIdStr = selectedSendSmsIdStr = "";
        var uploadsuccess = "上传成功";
        var sendsuccess = "发送成功";
        var uploaderror = "上传失败";
        var uploadnumlimit = "最多上传5个附件";
        var uploadduplicate = "该文件已加入上传队列";
        var weathertip = "未开启天气预报";
        var unselectuser = "暂未选择发送人员";
        var no_content_tip = "发送内容不能为空";
        var theme_select_priv = 0;
        var theme_select_tip = '对不起，您没有换肤权限';
        theme_select_priv = 1;
    </script>
    <script type="text/javascript">
        seajs.config({
            base: './static/js/',
            alias: {
                'underscore': 'backbone/underscore.js',
                'backbone': 'backbone/backbone.min.js',
                'menu-aim': 'jquery-1.10.2/jquery.menu-aim.js',
                'miniNotification': 'miniNotification.js',
                'tDesktop': 'tDesktop/puck.tDesktop.js'
            }
        });


    </script>


    <script>


        jQuery(function () {
            seajs.use(['tDesktop', 'backbone'], function (tDesktop) {
                //            alert("dfdsfdsaf");
                var tDesktop = new tDesktop.TDesktop;
                //           alert(tDesktop);
                window.tDesktop = tDesktop;
            });
            //检测是否支持WebUploader
            if (!WebUploader.Uploader.support()) {
                alert('提示：您所使用的浏览器不支持WebUploader组件，该组件会影响系统内文件上传功能。如果您所使用的是IE浏览器，请尝试升级flash播放器');
            }
        });
        function formatCalendarTitle(cstring) {
            var transMap = [
                {lable: '会议', key: 'meeting'},
                {lable: '车辆', key: 'car'}
            ];
            jQuery.each(transMap, function (k, v) {
                var lable = v.lable;
                var tips = new RegExp("^" + lable + ":", "g");
                cstring = cstring.replace(tips, '<span class="calendar-title-tip">' + lable + '：' + '</span><span>');
            });
            return cstring;
        }
    </script>
    <script>
        function show_feedback() {
            window.open("http://club.tongda2000.com/demand/");
        }
    </script>
</head>
<body id="body" class="TOS">
    <style>
        .vmPanel {
            padding-left: 9px;
            margin: 10px 0;
            background: url("static/images/voicemsg/sound_bg.png") no-repeat left top;
            height: 38px;
            line-height: 38px;
            cursor: pointer;
        }

        .vmContent {
            background: url("static/images/voicemsg/sound_bg.png") no-repeat right -38px;
            font-size: 12px;
            font-weight: bold;
            color: #668A0D;
            text-align: right;
            padding-right: 10px;
        }

        .vmContent .icoVoice, .vmContent .icoVoicePlaying, .vmContent .icoVoiceDown {
            float: left;
            width: 32px;
            height: 32px;
            margin-top: 4px;
            display: inline;
        }

        .vmContent .icoVoice {
            background: url("static/images/voicemsg/icon_sound.png") no-repeat 0 3px;
        }

        .vmContent .icoVoiceDown {
            background: url("static/images/voicemsg/icon_download.png") no-repeat -32px 0;
        }

        .vmContent .icoVoicePlaying {
            background: url("static/images/voicemsg/you_voice_play.gif") no-repeat 0 4px;
        }

        .vmPanel.vmYou {
            background-position: left top;
        }

        .vmPanel.vmYou .vmContent {
            background-position: right -38px;
        }

        .vmPanel.vmMe {
            background-position: left -76px;
        }

        .vmPanel.vmMe .vmContent {
            background-position: right -114px;
            color: #9e9e9e;
        }

        .vmPanel.vmMe .vmContent .icoVoice {
            background: url("static/images/voicemsg/icon_sound.png") no-repeat -31px 3px;
        }

        .vmPanel.vmMe .vmContent .icoVoiceDown {
            background: url("static/images/voicemsg/icon_download.png") no-repeat 0 0;
        }

        .vmPanel.vmMe .vmContent .icoVoicePlaying {
            background: url("static/images/voicemsg/me_voice_play.gif") no-repeat 0 5px;
        }

        .emotions {
            vertical-align: middle;
        }

        .imPanel, a.fmPanel, .lmPanel {
            margin: 5px 0;
        }

        a.fmPanel {
            border-radius: 2px;
            display: block;
            width: 182px;
            height: 40px;
            line-height: 40px;
            background: url(static/images/ipanel/download.jpg) no-repeat;
            text-decoration: none;
        }

        a.fmPanel span {
            display: block;
            padding-left: 50px;
            background-position: 4px center;
            background-repeat: no-repeat;
            color: #9e9e9e;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        .lmPanel {
            display: inline-block;
            height: 18px;
            padding-left: 20px;
            line-height: 18px;
            background: url(static/images/ipanel/location.png) no-repeat;
        }
    </style>
    <script src="static/js/ispirit.js"></script>
    <script type="text/javascript">
        (function ($) {

            var imageMsg = {
                init: function () {
                    $(document).delegate(".imPanel[node-type='tMImage']", "click", function (e) {
                        var _href = $(this).attr('node-data');
                        e.stopPropagation();

                        if (typeof (window.external.PlayVoiceMsg) == "undefined") {
                            mytop = (screen.availHeight - 510) / 2;
                            myleft = (screen.availWidth - 660) / 2;
                            window.open(_href, "imageShow", "height=510, width=660, top=" + mytop + ", left=" + myleft + ",toolbar=no, menubar=no, scrollbars=yes, resizable=no, location=no, status=no");
                        } else {
                            if (parent && parent.openURL) {
                                parent.openURL(_href);
                            }
                        }
                        return;
                    });
                }
            }

            var voiceMsg = {
                "init": function () {
                    $(document).delegate(".vmPanel[action-type='play']", "click", function (e) {
                        e.stopPropagation();

                        if (typeof ($(this).attr("status")) == "undefined")
                            var status = "stop";
                        else
                            var status = $(this).attr("status");

                        if (status == "stop") {
                            $(this).attr("status", "palying");
                            voiceMsg.play($(this));
                            $(this).attr("title", "点击停止播放");
                        } else {
                            $(this).attr("status", "stop");
                            voiceMsg.stop();
                            $(this).attr("title", "点击播放");
                        }
                        return;
                    });

                    $(document).delegate(".vmPanel[action-type='download']", "click", function () {
                        voiceMsg.download($(this));
                    });
                },
                "play": function (handler) {
                    var voice_data = handler.attr("action-data");
                    this.stop();
                    handler.find("[un='voiceStatus']").attr("class", "icoVoicePlaying");
                    if (typeof (window.external.PlayVoiceMsg) == "undefined") {

                    } else {
                        window.external.PlayVoiceMsg(voice_data);
                    }
                },
                "stop": function () {
                    if (typeof (window.external.StopVoiceMsg) == "undefined") {
                    } else {
                        window.external.StopVoiceMsg("");
                    }
                    StopVoiceMsg();
                },
                "download": function (handler) {
                    var voice_data = handler.attr("action-data-url");
                    window.open(voice_data);
                }
            }

            $(function () {
                replaceVMDom();
                voiceMsg.init();
                imageMsg.init();
            });

        })(jQuery);

        function replaceVMDom() {

            if (!window.external)
                return;

            if (typeof (window.external.OA_SMS) == "undefined") {
                //默认是下载不需要替换
            } else {
                if (!window.external.OA_SMS("", "", "GET_VERSION") || window.external.OA_SMS("", "", "GET_VERSION") < '20121210') {
                    var vm = jQuery(".vmPanel");
                    vm.before("<span style='color:red'>系统提示：客户端版本过低，请升级客户端</span>");
                    vm.remove();
                } else {

                    //有通过后台传值判断精灵的部分不替换
                    if (jQuery(".vmPanel").size() > 0) {
                        var defaultaction = jQuery(".vmPanel").eq(0).attr("action-type");
                        if (defaultaction == "play" && typeof (window.external.PlayVoiceMsg) != "undefined")
                            return;

                    } else {
                        return;
                    }

                    jQuery(".vmPanel").each(function () {
                        jQuery(this).attr({
                            "action-type": "play",
                            "title": "点击播放"
                        });
                        jQuery(this).find("[un='voiceStatus']").attr("class", "icoVoice");
                    });
                }
            }
        }

        function StopVoiceMsg() {
            jQuery("[un='voiceStatus']").attr("class", "icoVoice");
        }

        top.StopVoiceMsg = StopVoiceMsg;

    </script>
    <div id="north" class="navwrapper">
        <div id="infobar" class="navbar pull-right">
            <ul class="infonav">
                <li id="info_avater" class="navin" data-placement="left" data-toggle="tooltip" title=""
                    data-original-title="我的账号" data-step="6" data-intro="<b style='display:block'>6、我的账号</b>鼠标移上显示个人账户信息。"
                    data-position="left" style="margin-right: 80px">
                    <a href="javascript:;" id="avatar" class="nav-item iconfont">&#xe63e;</a>

                    <div class="info-wrap">
                        <div class="person-info-header clearfix">
                            <div class="person-info-avator">
                                <img src="static/images/avatar/0.gif" width="60" height="60" id="loginavatar">
                            </div>
                            <div class="person-info-content" style="margin-right: 60px">
                                <h6 class="person-info-name text-center">
                                    <span><?= Yii::$app->user->identity->username ?></span>
                                    <!--                                    <div class="person-info-online">
                                                                            <i class="iconfont tip-1" id="online_flag">
                                                                                &#xe63d;
                                                                            </i>
                                                                            <div class="person-info-tip" id="on_status">
                                                                                <a href="javascript:;" status="1" hidefocus="hidefocus">
                                                                                    <i class="iconfont tip-1">&#xe63d;</i>
                                                                                    <span class="info-tip-title">在线</span>
                                                                                </a>
                                                                                <a href="javascript:;" status="2" hidefocus="hidefocus">
                                                                                    <i class="iconfont tip-2">&#xe63c;</i>
                                                                                    <span class="info-tip-title">忙碌</span>
                                                                                </a>
                                                                                <a href="javascript:;" status="3" hidefocus="hidefocus">
                                                                                    <i class="iconfont tip-3">&#xe63b;</i>
                                                                                    <span class="info-tip-title">离开</span>
                                                                                </a>
                                                                            </div>
                                                                        </div>-->
                                </h6>
                                <!--                            <p class="person-info-detail">
                                                                <span class="person-info-department">北方测试研究公司</span>
                                                                <span>-OA 管理员</span>
                                                            </p>-->
                                <p class="person-info-detail" title=""></p>
                            </div>
                        </div>
                        <div class="person-info-body">
                            <!--<a href="javascript:;" id="person_info" hidefocus="hidefocus">控制面板</a>-->
                            <a href="javascript:;" id="logout" hidefocus="hidefocus">注销</a>

                        </div>
                    </div>
                </li>
                <!--                <li class="navin" data-step="7" data-intro="<b style='display:block'>7、搜索</b>通过“搜索”，可以快速搜索用户、菜单、工作流、通讯簿、日程安排和在线帮助。" data-position="left">
                                    <a href="javascript:;" id="searchbar" class="nav-item searchbar iconfont" data-placement="bottom" data-toggle="tooltip" title="" data-original-title="搜索">&#xe603;</a>
                                </li>-->
                <!--                <li class="navin" data-step="8" data-intro="<b style='display:block'>8、任务中心</b>点击进入“任务中心”，可以看到按时间和紧急程度排序的待办任务，并可快速建立任务。" data-position="left">
                                    <a href="javascript:;" id="totaskbar22" class="nav-item iconfont" data-placement="bottom" data-toggle="tooltip" title="" data-original-title="任务中心">&#xe641;</a>
                                </li>-->
                <!--                <li class="navin" data-step="9" data-intro="<b style='display:block'>9、企业社区</b>点击进入“企业社区”，促进企业信息交流与知识共享。" data-position="left">
                                    <a href="javascript:;" id="tosns" class="nav-item iconfont" data-placement="bottom" data-toggle="tooltip" title="" data-original-title="企业社区">&#xe67b;</a>
                                </li>-->
                <!--                <li class="navin" data-step="10" data-intro="<b style='display:block'>10、更换皮肤</b>通达OA为您提供了完备的界面换肤功能，通过“更换皮肤”按钮，一触即换。" data-position="left">
                                    <a href="javascript:;" id="theme" class="nav-item iconfont" data-placement="bottom" data-toggle="tooltip" title="" data-original-title="换肤" style="font-size: 24px;">&#xe60f;</a>
                                </li>-->
                <!--                <li class="navin" data-step="11" data-intro="<b style='display:block'>11、通知中心</b>“通知中心”为您提供今日消息、事务提醒，增强网页微讯交流，支持文件分享与群发。" data-position="left">
                                    <a href="javascript:;" id="eastbar" class="nav-item iconfont" data-placement="bottom" data-toggle="tooltip" title="" data-original-title="通知中心">&#xe60b;</a>
                                </li>-->
            </ul>
        </div>
        <div id="logo" class="pull-left">
            <!--<a href="javascript:;" onClick="javascript:createTab('portal_5', '我的桌面', '/portal/personal/', '0');">-->
            <!--<img src="static/theme/15/images/logo_simple.png"/>-->
    <!--        <img src="../web/static/theme/15/images/gky-logo.png" 
                 style="float:left;margin:20px 5px 0;width: 35px;"/>            </a>-->
            <!--        <h4 style="margin-top:28px;">工程管理专业教学资源数据库</h4>-->
        </div>
        <div id="taskbar" class="pull-left">
            <div id="tabs_left_scroll" class="tabs-scroll scroll-left"></div>
            <div id="tabs_container" class="tabs-container"></div>
            <div id="tabs_right_scroll" class="tabs-scroll scroll-right"></div>
        </div>
    </div>
    <div id="funcbar" class="funcbar">
        <div id='funcmenu_switcher'>
            <span>导航菜单</span>
            <i id="caidan" class="funcmenu_switcher" data-step="1"
               data-intro="<b style='display:block'>1、导航菜单按钮的使用</b>您已进入到通达OA主操作界面，您可以点击“导航菜单”按钮，控制主菜单显隐。"
               data-position="right"></i>
        </div>
        <div id="funcbar_left"></div>



        <!--    <div id="funcbar_right">
                        <i class="iconfont js-inOrg" data-placement="bottom" data-toggle="tooltip" title="" data-original-title="组织">&#xe67f;</i>	        <i class="iconfont js-inNocbox" data-placement="bottom" data-toggle="tooltip" title="" data-original-title="事务提醒">&#xe681;</i>
                        <i class="iconfont js-inWeixun" style="font-size: 18px;" data-placement="bottom" data-toggle="tooltip" title="" data-original-title="微讯">&#xe605;</i>        
                    <a>
                            <img src="static/theme/15/images/newfolder.gif"/>
                            <span>新建</span>
                    </a>
                    <a>
                            <img src="static/theme/15/images/print.gif"/>
                            <span>打印</span>
                    </a>
                <select>
                    <option>
                            Excel导出
                    </option>
                 </select>
            </div>-->



    </div>
    <div id="west" class="west">
        <div id="west-body-wrapper">
            <div class="west-body">
                <div class="menu-scroll scroll-up"></div>
                <ul id="first_menu" class="first-menu" data-step="2"
                    data-intro="<b style='display:block'>2、主菜单</b>利用“菜单导航”功能，您可以找到所需要的功能选项。" data-position="right"></ul>
                <div class="menu-scroll scroll-down"></div>
            </div>
        </div>
        <div class="west-footer">
            <span id="new_sms_sound" style="width:1px;height:1px;position:fixed;bottom:0px;left:0px;"></span>
            <ul class="ft-links clearfix">
                <!--            <li class="ft-link ft-link-icon"><a href="javascript:;" class="iconfont" onClick="createTab(59,'我的门户','','');" data-placement="top" data-toggle="tooltip" title="" data-original-title="我的门户" data-step="3" data-intro="<b style='display:block'>3、我的门户</b>点击打开“门户列表”区域，选择您想打开的门户。" data-position="top">&#xe60e;</a></li>-->
                <!--                <li class="ft-link ft-link-icon"><a href="javascript:;" class="iconfont" data-placement="top" data-toggle="tooltip" title="" data-original-title="我的门户" data-step="3" data-intro="<b style='display:block'>3、我的门户</b>点击打开“门户列表”区域，选择您想打开的门户。" data-position="top">&#xe60e;</a></li>
                                <li class="ft-link ft-link-icon"><a href="javascript:;" class="iconfont" hidefocus="hidefocus" data-placement="top" data-toggle="tooltip" title="" data-original-title="在线帮助" target="_blank" data-step="4" data-intro="<b style='display:block'>4、在线帮助</b>“通达OA在线帮助”汇集了常见的用户问题，帮助用户快速掌握软件各项功能的使用。" data-position="top">&#xe61b;</a></li>-->
                <li class="ft-link"><a href="javascript:;" style="height: 22px !important;font-size: 18px;"
                                       class="west-handle" data-step="5"
                                       data-intro="<b style='display:block'>5、图标模式</b>点击切换菜单模式。" data-position="top"><i
                            class="iconfont left_arrow" data-placement="top" data-toggle="tooltip" title=""
                            data-original-title="图标模式">&#xe636;</i><i class="iconfont right_arrow" data-placement="top"
                            data-toggle="tooltip" title=""
                            data-original-title="图标+文字模式">&#xe637;</i></a></li>
            </ul>
        </div>
    </div>
    <div id="center" class="center">
        <!--<div class="tosbg" id="tosbg"><div><img src="static/images/themeswitch/logo_tos.png" /><a href="javascript:;" onClick="createTab('portal_5','我的桌面','/gky/web?r=site/index','');" >我的桌面</a></div></div>-->
        <div class="tosbg" id="tosbg">
            <div><img src="static/images/themeswitch/logo_tos.png"/><a href="javascript:;"
                                                                       onClick="createTab('portal_5', '我的桌面', '?r=site/index', '');">我的桌面</a>
            </div>
        </div>
        <div id="notice_tip">
            <div id="notice_head"></div>
            <div id="notice_body"></div>
            <div id="notice_foot"></div>
        </div>
    </div>

    <div id="south" style="display:block;">
        <div id="hero_bar" title="">

        </div>
        <table>
            <tbody>
                <tr>

                    <td class="center">
                        <div class="text-center">Copyright © 2015 xunchi All rights reserved</div>
                    </td>

                </tr>
            </tbody>
        </table>
    </div>


    <ul class="msg-list">
        <div id="msg-ignore"><i class="iconfont"></i><span>忽略全部</span></div>
    </ul>
    <div id="east" class="east">
        <ul class="nav nav-tabs">
            <li class="nav-pill active" panelType="today"><a href="javascript:;" class="pill-bg">今日</a></li>
            <li class="nav-pill" panelType="msg"><a href="javascript:;" class="pill-bg">消息</a></li>
            <li class="nav-pill" panelType="org"><a href="javascript:;" class="pill-bg">组织</a></li>
        </ul>
        <div class="tab-content" id="east-tab">
            <div class="tab-pane pane-today active">
                <!--            <div class="dateArea" id="datetime"><div id="date" class="weather-date" title="2015年11月19日"><span>11月19日</span>星期四</div> <div id="mdate" title="农历 十月初八">农历十月初八</div></div>-->
                <div class="mod" id="weatherarea">
                    <!--                <div class="mod-hd"><span class="mod-hd-title">天气</span><div class="city"><i id="changecity" class="iconfont">&#xe63f;</i></div></div>-->
                    <div class="mod-bd">
                        <span id="city"></span>

                        <div id="weather2222" class="clearfix">
                        </div>
                        <div id="area_select" style="display: none">
                            <div>
                                <select id="w_province" onChange=""></select>
                                <select id="w_city" onChange=""></select>
                                <select id="w_county"></select>
                            </div>
                            <!--                        <div class="btns">
                                                        <button type="button" class="btn btn-mini btn-primary" id="saveWeather">确定</button>
                                                        <button type="button" class="btn btn-mini" id="closeWeather">取消</button>
                                                    </div>-->
                        </div>
                    </div>
                </div>
                <div class="mod">
                    <!--<div class="mod-hd"><span class="mod-hd-title">日程</span></div>-->
                    <!--                <div class="mod-bd">
                                        <ul id="cal_list" class="calendar-list"></ul>
                                        <div class="notip" id="caltip">今日暂无日程</div>
                                    </div>-->
                </div>
                <div class="mod">
                    <!--                <div class="mod-hd"><span class="mod-hd-title">提醒事项</span></div>
                                    <div class="mod-bd">
                                        <ul id="remind_list" class="remind_list"></ul>
                                        <div class="notip" id="remindtip">今日暂无提醒</div>
                                    </div>-->
                </div>
            </div>
            <!--        <div class="tab-pane pane-msg">
                        <div class="btn-group msg-tool" id="msg-tool">
                            <button type="button" msg-panel="nocbox" class="btn btn-mini btn-primary"><span>事务提醒</span></button>
                            <button type="button" msg-panel="weixun" class="btn btn-mini"><span>微讯</span></button>
                        </div>
                        <div id="nocbox" class="msg-panel active">
                            <div class="noc" id="new_noc_panel">
                                <div id="nocbox_tips" class="nocbox_tips"><div class="loading"></div></div>
                                <div id="nodata_tips" class="nodata_tips"><div class="">没有未读的事务提醒<a href="javascript:;" hidefocus="hidefocus" id="tohistory" class="tohistory">查看历史消息</a></div></div>
                                <div class="noc-info" id="new_noc_title">共<span id="noc_item_num" class="noc_item_num">0</span>条消息记录</div>
                                <div id="new_noc_list_wrapper" >
                                    <div id="new_noc_list" class="new_noc_list">
                                    </div>
                                </div>
                                <div class="noc-nav-bar">
                                    <a href="javascript:;" hidefocus="hidefocus" id="ViewAllNoc" class="viewbtn"><i class="iconfont">&#xe60c;</i>全部已阅</a>
                                    <a href="javascript:;" hidefocus="hidefocus" id="ViewDetail" class="viewbtn"><i class="iconfont">&#xe609;</i>查看全部</a>
                                    <a href="javascript:;" hidefocus="hidefocus" class="noc-right" id="check_remind_histroy"><i class="iconfont">&#xe606;</i>历史消息</a>
                                </div>
                            </div>
                        </div>
                        <div id="weixun" class="msg-panel">
                            <div class="weixun-panel active" id="recent">
                                <ul class="recentlist" id="recentlist"></ul>
                                <div class="rec_tips" id="rec_tips">暂无最近联系人</div>
                                <div class="rec-ft">
                                    <button type="button" id="tosend" class="btn btn-info btn-mini pull-left"><i class="iconfont multi">&#xe605;</i>群发</button>
                                    <i class="iconfont refresh pull-right" title="刷新" id="refresh-rec">&#xe60a;</i>
                                    <i class="iconfont del pull-right" title="清空" id="clear-rec">&#xe644;</i>
                                </div>
    
                            </div>
                            <div class="weixun-panel" id="send">
                                <div class="sendwrapper">
                                    <a href="javascript:;" id="torecent">返回</a>
                                    <div class="input-append send-header">
                                        <input id="search" type="text">
                                        <span class="send-inner-icon"><i class="iconfont send-info-size">&#xe603;</i></span>
                                        <button tyle="button" class="send-info-btn btn" id="adduser"><i class="iconfont send-info-size">&#xe602;</i></button>
                                    </div>
                                    <div class="send_mod">
                                        <div class="send_hd clearfix"><a href="javascript:;" id="clearall" class="clearall pull-right">清空</a></div>
                                        <div class="send_bd user-tags" id="user-tags"></div>
                                        <div class="no-tag-tips" id="no-tag-tips">暂未选择任何联系人</div>
                                        <input type="hidden" id="userid" name="TO_UID">
                                        <input type="hidden" id="username" name="TO_NAME">
                                    </div>
                                    <div><a href="javascript:;" class="getmore" id="getmore">更多</a></div>
                                    <div class="send-footer">
                                        <div id="uploader" class="uploader">
                                            <div class="btns pick">
                                                <div id="picker">选择文件</div>
                                            </div>
                                            <div id="uploadlist" class="uploader-list"></div>
                                        </div>
                                        <textarea id="sms_content" name="CONTENT"></textarea>
                                        <div class="send-footer-info clearfix">
                                            <input type="hidden" name="I_VER" value="">
                                            <input type="hidden" name="C" value="">
                                            <button type="button" class="btn btn-primary pull-right" data-loading-text="正在发送" id="sms_send">发送</button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>-->
            <div class="tab-pane pane-org">
                <div class="btn-group org_tool" id="org_tool">
                    <!--                <button type="button" class="btn btn-mini online-btn btn-primary" user-type="user_online"><span>在线</span><span class="user_online"></span></button>
                                    <button type="button" class="btn btn-mini online-btn" user-type="user_all"><span>全部</span></button>-->
                </div>
                <div class="org-panel" id="org_panel">
                    <div id="user_online222" class="online-panel">
                        <div id="orgTree0"></div>
                    </div>
                    <div id="user_all" class="online-panel">
                        <div id="orgTree1"></div>
                    </div>
                </div>
            </div>
        </div>
        <a href="javascript:;" class="east-handle"><i class="iconfont left_arrow">&#xe637;</i></a>

        <div class="chat-wrapper" id="chat-wrapper">
            <div class="chat_side">
                <!--<div id="smsbox_scroll_up" style="display: none;"></div>-->
                <div id="smsbox_list">
                    <div id="smsbox_list_container" class="list-container">
                    </div>
                </div>
                <!--<div id="smsbox_scroll_down" style="display: none;"></div>-->
            </div>
            <div class="chat_panel">
                <div class="chat-header">
                    <h6 id="chat-title" class="chat-title"></h6>
                    <span id="chat-status" class="chat-status"></span>
                    <button type="button" class="close" id="smsbox_toolbar_del">×</button>
                    <button type="button" class="close" id="smsbox_toolbar_shrink">-</button>
                </div>
                <div class="chat-body" id="smsbox_msg_container">
                    <div id="moreHistoryMsg"><a target="_blank">点击查看更多</a><img src="static/images/ztree/loading.gif"
                                                                               style="display:none;"></div>
                </div>
                <div class="chat-footer" id="chat_uploader">
                    <textarea id="smsbox_textarea"></textarea>

                    <div class="send_area">
                        <div class="send_tool">
                            <a href="javascript:;" id="uploadBar"><i class="iconfont">&#xe642;</i></a>
                            <a href="javascript:;" id="quickBar"><i class="iconfont">&#xe643;</i></a>

                            <div class="quickReply" id="quickReplyPop">
                                <select id="smsbox_rapid_reply" title="请到系统管理->系统代码->微讯快捷回复 进行设置">
                                    <option value="">快捷回复</option>
                                </select>

                                <div class="quickarrow"></div>
                            </div>
                        </div>
                        <button class="btn btn-small btn-primary" id="smsbox_send_msg" data-loading-text="提交中">发送</button>
                    </div>
                </div>
            </div>
            <div class="chat-delete" id="chat-delete">
                <div class="close_hd">关闭会话
                    <button type="button" class="close" id="chatDeleteClose">×</button>
                </div>
                <div class="close_bd">关闭所有会话还是关闭当前会话？</div>
                <div class="close_ft">
                    <button class="btn btn-mini btn-warning" type="button" id="closeAllChat">关闭所有</button>
                    <button class="btn btn-mini" type="button" id="closeActiveChat">关闭当前</button>
                </div>
            </div>
        </div>
    </div>
    <div id="mask"></div>
    <!--聊天窗口-->

    <!-- lijun -->
    <div class="search-container">
        <!-- 关闭按钮 -->
        <div class="iconfont search-close-btn">&#xe621;</div>
        <!-- 搜索框 -->
        <div class="search-box">
            <!--<span class="search-input"><input id="search-input" type="text" autocomplete="off" placeholder="搜索用户、菜单、工作流、通讯簿、日程、帮助..."></span>-->
            <span class="search-input"><input id="search-input" type="text" autocomplete="off" placeholder=""></span>
            <span class="search-btn"><input id="search-btn" type="submit" value="搜索" search-type="user"></span>
        </div>

        <!-- 搜索结果返回区 -->
        <div class="search-results-wrapper">
            <!-- 搜索结果切换tab -->
            <ul class="search-results-tabs">
                <li class="user-tab active" search-type="user" searched=""><span>用户</span><span
                        class="search-counter search-counter-user">(0)</span></li>
                <li class="menu-tab" search-type="menu" searched=""><span>菜单</span><span
                        class="search-counter search-counter-menu">(0)</span></li>
                <li class="workflow-tab" search-type="workflow" searched=""><span>工作流</span><span
                        class="search-counter search-counter-workflow">(0)</span></li>
                <li class="contacts-tab" search-type="contacts" searched=""><span>通讯簿</span><span
                        class="search-counter search-counter-contacts">(0)</span></li>
                <li class="calendar-tab" search-type="calendar" searched=""><span>日程安排</span><span
                        class="search-counter search-counter-calendar">(0)</span></li>
                <li class="helper-tab" search-type="helper"><span><a href="/module/help" target="_blank">在线帮助</a></span>
                </li>
            </ul>
            <!-- 陈列所有结果 -->
            <div class="search-results-container" id="search-results-container">
                <div class="search-results-iscroll">
                    <ul class="search-results-user">
                        <!-- 翻页插件容器 -->
                        <div id="pagination-user" class="pagination"></div>
                    </ul>
                    <ul class="search-results-menu">
                        <!-- 翻页插件容器 -->
                        <div id="pagination-menu" class="pagination"></div>
                    </ul>
                    <ul class="search-results-workflow">
                        <!-- 翻页插件容器 -->
                        <div id="pagination-workflow" class="pagination"></div>
                    </ul>
                    <ul class="search-results-contacts">
                        <!-- 翻页插件容器 -->
                        <div id="pagination-contacts" class="pagination"></div>
                    </ul>
                    <ul class="search-results-calendar">
                        <!-- 翻页插件容器 -->
                        <div id="pagination-calendar" class="pagination"></div>
                    </ul>
                </div>
            </div>
        </div>
    </div>

    <!-- 激光加载条(pulse bar) -->
    <div id="progressBar" class="done">
        <span id="flashBar"></span>
    </div>

    <!-- 消息(Message) -->
    <div id="mini-notification">
        <p>The notification has been successfully displayed</p>
    </div>

    <!-- lijun -->

    <!-- 主题切换 -->
    <div id="theme_panel" class="over-mask-layer">
        <div class="center">
            <div class="theme clearfix" id="theme_slider"></div>
        </div>
    </div>
    <div id="overlay_theme"></div>

</body>
<!--一级菜单-->
<script id="menuTmpl" type="text/x-jquery-tmpl">
    <li data-submenu-id="second-menu-${menuId}">
    <div id="m${menuId}" hidefocus="hidefocus" class="first-menu-item"><i class="iconfont">${iconfont}</i><span class="first-menu-title">${menuText}</span></div>
    <div id="second-menu-${menuId}" class="second-panel">
    <h4>${menuText}</h4>
    <ul id="second-menulist-${menuId}" class="second-menu clearfix">  
    </ul>
    </div>
    </li> 



</script>
<!--二级菜单-->
<script id="secondMenuTmpl" type="text/x-jquery-tmpl">
    <li class="{{if expand !=false }}expand{{/if}}"><a id="${menuId}" class="second-menu-item" title="${menuText}" href="javascript:;" onclick="${actionType}" hidefocus="hidefocus">${menuText}</a>{{if expand !=false }}<ul id="third-menulist-${menuId}" class="third-menu"></ul>{{/if}}</li>



</script>
<!--三级菜单-->
<script id="thirdMenuTmpl" type="text/x-jquery-tmpl">
    <li><a id="${menuId}" class="third-menu-item" href="javascript:;" title="${menuText}" onclick="${actionType}" hidefocus="hidefocus">${menuText}</a></li>



</script>
<!--系统消息提示条-->

<script type="text/template" id="item-template">
    <div class="msg-wrapper  msg-id-${mid}">
    <div class="msg-icon iconfont">{{if msgTipIconfont[$data.mid]}} ${msgTipIconfont[$data.mid]} {{else}}
    ${msgTipIconfont[24]} {{/if}}
    </div>
    <p class="msg-title">${title}</p>

    <p class="msg-content">${msg}</p>

    <div class="msg-count">${num}</div>
    <div class="msg-close"></div>
    <div class="msg-op">
    <i>
    <svg version="1.1" id="图形" xmlns="http://www.w3.org/2000/svg"
    x="0px" y="0px" width="1024px" height="1024px" viewBox="0 0 1024 1024"
    enable-background="new 0 0 1024 1024" xml:space="preserve">
    <path fill="#272636"
    d="M746.662019 300c0-51.835575 42.044582-93.865831 93.865831-93.865831 51.851948 0 93.865831 42.029232 93.865831 93.865831 0 51.836599-42.013883 93.865831-93.865831 93.865831C788.706601 393.864808 746.662019 351.836599 746.662019 300zM89.604272 300c0-51.835575 42.043558-93.865831 93.864808-93.865831 51.822272 0 93.865831 42.029232 93.865831 93.865831 0 51.836599-42.043558 93.865831-93.865831 93.865831C131.648854 393.864808 89.604272 351.836599 89.604272 300zM418.132634 300c0-51.835575 42.013883-93.865831 93.866854-93.865831 51.821249 0 93.864808 42.029232 93.864808 93.865831 0 51.836599-42.043558 93.865831-93.864808 93.865831C460.146517 393.864808 418.132634 351.836599 418.132634 300z"
    transform="translate(0, 812) scale(1, -1)"/>
    </svg>
    </i>

    <div class="msg-op-btns">
    <div class="ignore-this">忽略此条</div>
    <div class="ignore-all">忽略全部</div>
    {{if $data.mid != "message" }}
    <div class="mark-read">已阅此条</div>
    <div class="mark-all">已阅全部</div>
    {{/if}}
    </div>
    </div>
    </div>
</script>
<!--天气-->
<script type="text/template" id="weather-templ">
    <div class="tempimg">
    <img src="static/images/weather/png/day/${img1}.png"/>
    <img src="static/images/weather/png/night/${img2}.png"/>

    <div class="temperature">${temperature}</div>
    </div>
    <div class="temp">
    <span>${weather}</span>
    <span>${wind}</span>
    </div>
</script>
<!--聊天窗口左侧人-->
<script id="chatUser-template" type="text/template">
    <div class="chatuser ${unread}" group_id="${from_id}" user="${from_id}" online="${online_status}">
    <img src="${avatar}"/>
    <span class="fromname">${from_name}</span>
    <span class="count">
    {{if count>0}}
    ${count}
    {{/if}}
    </span>
    <i class="iconfont">&#xe621;</i>
    </div>
</script>
<!--聊天窗口右侧消息-->
<script type="text/template" id="chatMsg-template">
    <div class="chatmsg {{if $data.from_id == loginUser.uid }} to {{else}} from {{/if}} clearfix" sms_id="${sms_id}"
    type_id="${type_id}" url="${url}" from_type_name="${from_type_name}">
    <div class="chat-popbox-dialogbox-time">${time}</div>
    <div class="chat-popbox-dialogbox">
    <div class="chat-popbox-avatar">
    <img src="${avatar}" onerror='fixAvatar(${from_id});' class="ui-li-thumb"/>
    </div>
    <div class="chat-popbox-bg">{{html content}}</div>
    </div>
    </div>
</script>
<!--会话部分-->
<script id="recentList-template" type="text/template">
    <li>
    <a href="javascript:;" fromid="${from_id}" class="recentItem">
    <img src="${avatar}" class="rec_avatar" onerror='fixAvatar(${from_id});'/>

    <div class="rec_info">
    <span class="rec_name">${from_name}</span>
    <span class="rec_time">${time_stamp}</span>

    <p class="rec_content">{{html content}}</p>
    </div>
    </a>
    </li>
</script>
<!--日程-->
<script id="calendar-template" type="text/template">
    <li><a href="javascript:;" cal_id="${id}" cal_type="${type}" class="common-font"><span class="cal_content">{{html formatCalendarTitle(title) }}</span><span
    class="pull-right">${shortstart}</span></a></li>
</script>
<!--提醒事项-->
<script id="reminder-template" type="text/template">
    <li><a href="javascript:;" data_id="${id}" class="common-font"><span class="cal_content">${title}</span><span
    class="pull-right">${appoint_time}</span></a></li>
</script>
<!--事务提醒模块-->
<script id="noc-template" type="text/template">
    <div class="noc_item noc_item_${type_id}">
    <div class="noc_item_title">
    <a href="javascript:;" class="noc_item_read pull-right" type_id="${type_id}" title='查看全部'><i
    class="iconfont">&#xe609;</i></a>
    <a href="javascript:;" class="noc_item_cancel pull-right" type_id="${type_id}" title='全部已阅'><i
    class="iconfont">&#xe640;</i></a>
    <span>${type_name}</span>
    </div>
    <ul class="noc_item_data">
    </ul>
    </div>
</script>
<!--事务提醒条目-->
<script id="nocitem-template" type="text/template">
    <li id="noc_li_${sms_id}" sms_id="${sms_id}" url="${url}" type_id="${type_id}" class="">
    <a href="javascript:;" class="noc-subitem">
    <p class="noc_item_info">
    <span class="noc_item_time pull-right ">${send_time}</span>
    <span class="name">${from_name}</span>
    </p>

    <p class="noc_item_content">{{html content }}</p>
    </a>
    </li>
</script>
<!-- 搜索模块的js模板 -->
<!-- 用户模板 -->
<script type="text/template" id="search-template-user">
    <li u_id="${uid}" userid="${userid}">
    <div class="user-avatar"><a class="user-main-page" href="ipanel/user/user_info.php?USER_ID=${userid}"
    target="_blank"><img src="${portraitUrl}"></a></div>
    <div class="user-body">
    <a class="user-body-name user-main-page" href="ipanel/user/user_info.php?USER_ID=${userid}" target="_blank">${userName}</a>
    {{if cur_login_user_id != userid}}
    {{if is_concern == 0}}
    <button class="user-body-follow">关注</button>
    <button class="user-body-hasfollow hide">已关注</button>
    {{else}}
    <button class="user-body-follow hide">关注</button>
    <button class="user-body-hasfollow">已关注</button>
    {{/if}}
    {{else}}
    {{/if}}
    <div>${department}</div>
    <div>{{if phoneNum}}电话：${phoneNum}{{/if}} &nbsp;&nbsp;&nbsp; {{if email}}邮箱：${email}{{/if}} &nbsp;&nbsp;&nbsp;
    {{if qq}}QQ：${qq}{{/if}}
    </div>
    <div>{{if signature}}签名：${signature}{{/if}}</div>
    </div>
    <div class="op-labels">
    {{if isPriv}}
    <!-- no right to access -->
    {{else}}
    <a href="status_bar/sms_back.php?TO_UID=${uid}&TO_NAME=${userName}" target="_blank">
    <button class="send-msg">微讯</button>
    </a>
    <a href="email/new/?TO_ID=${userid}&TO_NAME=${userName}" target="_blank">
    <button class="send-email">邮件</button>
    </a>
    {{/if}}
    </div>
    </li>
</script>
<!-- 菜单模板 -->
<script type="text/template" id="search-template-menu">
    <li menu_id="${menuId}" onclick="createTab('${menuId}','${menuTitle}','${menuUrl}','');">${menuTitle}</li>
</script>
<!-- 工作流模板 -->
<script type="text/template" id="search-template-workflow">
    <li class="workflow-search-results" url="${url}" run_id="${runId}">
    <a flow_id="${flowId}">${runName}</a>

    <div>工作流ID：<span>${runId}</span> &nbsp;<br/>当前办理步骤：第 <span>${prcsId}</span> 步</div>
    </li>
</script>
<!-- 通讯簿模板 -->
<script type="text/template" id="search-template-contacts">
    <li u_id="${uid}">
    <div class="contacts-avatar"><img src="${portraitUrl}"></div>
    <div class="contacts-body">
    <span class="contacts-name">${uName}</span>

    <div class="contacts-company">${company} ${department}</div>
    <div class="contacts-contact">{{if phoneNum}}电话：${phoneNum}{{/if}} &nbsp;&nbsp;&nbsp; {{if
    email}}邮箱：${email}{{/if}} &nbsp;&nbsp;&nbsp; {{if qq}}QQ：${qq}{{/if}}
    </div>
    <div class="contacts-address">{{if address}}地址：${address}{{/if}}</div>
    </div>
    <div class="op-labels">
    {{if groupName != '1'}}
    {{if groupName == '0'}}
    <a href="email/new/?TO_ID=${userid}&TO_NAME=${uName}" target="_blank">
    <button class="send-email">邮件</button>
    </a>
    {{else}}
    {{if email}}
    <a href="email/new/?TO_WEBMAIL=${email}" target="_blank">
    <button class="send-email">邮件</button>
    </a>
    {{/if}}
    {{/if}}
    {{/if}}
    </div>
    </li>
</script>
<!-- 日程安排模板 -->
<script type="text/template" id="search-template-calendar">
    <li cal_id="${calId}">
    <a href="calendar/arrange/cal_note.php?CAL_ID=${calId}" target="_blank">${content}</a>

    <div class="calendarTime">${calTime} — ${endTime}</div>
    </li>
</script>
</html>
<div id="overlay"></div>
<div style="display:none;">
</div>
</body>
</html>
